package com.english.service;

import com.english.entity.FreeLessonAppointment;
import java.util.List;

public interface FreeLessonAppointmentService {
    void createAppointment(FreeLessonAppointment appointment);
    boolean cancelAppointment(Long appointmentId, String cancelReason);
    void updateStatus(Long appointmentId, String status, Long adminId);
    List<FreeLessonAppointment> queryAppointments(Long studentId, String date, String status);
    
    /**
     * 检查学生是否可以在指定日期预约
     * @param studentId 学生ID
     * @param date 预约日期
     * @return 是否可以预约
     */
    boolean canStudentAppointment(Long studentId, String date);
} 